<?php

include "conecta.php";

$texto=$_GET["texto"];
$data=$_GET["data"];
$hora=$_GET["hora"];
$sender=$_GET["sender"];
$target=$_GET["target"];

$sqlCommand = "INSERT INTO mensagem (texto, data, hora, lida, _id_sender, _id_target) VALUES ('".$texto."','".$data."','".$hora."','N',".$sender.",".$target.")";

$conect->query($sqlCommand);

echo "feito";

$conect->close();

?>

